﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddNewSupplier.aspx.cs" Inherits="Web.Product.AddNewSupplier" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../CSS/style.css" />
    <link rel="stylesheet" type="text/css" href="../CSS/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="../CSS/jquery-ui.css" />
    <link href="../CSS/Fonts.css" rel='stylesheet' type='text/css' />
    <script src="../JS/jquery.min.js"></script>
    <script src="../JS/bootstrap.min.js"></script>
    <script src="../JS/verify.notify.min.js"></script>
    <script src="../JS/jquery-ui.min.js"></script>
    <telerik:RadCodeBlock ID="RadCodeBlock" runat="server">
        <script type="text/javascript">
            function WebForm_OnSubmit() {
                if (typeof (ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) {
                    $("#validation_dialog").dialog({
                        title: "Validation Error!",
                        modal: true,
                        resizable: false,
                        buttons: {
                            Close: function () {
                                $(this).dialog('close');
                            }
                        }
                    });
                    return false;
                }
                return true;
            }
            function onClose() {
                window.close();
            }
            function closeWin() {
                alert("Change password successful !");
                GetRadWindow().BrowserWindow.location.href = 'Users.aspx';
                GetRadWindow().close();
            }
            function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow)
                    oWindow = window.radWindow;
                else if (window.frameElement.radWindow)
                    oWindow = window.frameElement.radWindow;
                return oWindow;
            }
        </script>
    </telerik:RadCodeBlock>
</head>
<body class="popup-body">
    <form id="form1" runat="server">
        <div>
            <div class="container-fluid">
                <div class="row">
                    <div class="edit-form highlight">
                        <div class="control-group">
                            <h4>Add new Supplier</h4>
                        </div>
                        <div class="control-group">
                            <div class="col-md-12 distance-control">
                                <div class="col-md-2">
                                    <label class="control-label">Name  </label>
                                </div>
                                <div class="col-md-10">
                                    <div class="controls">
                                        <asp:TextBox ID="txtName" runat="server" class="form-control" />
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-12 distance-control">
                                <div class="col-md-2">
                                    <label class="control-label">Website </label>
                                </div>
                                <div class="col-md-10">
                                    <div class="controls">
                                        <asp:TextBox ID="txtWebsite" runat="server" class="form-control" />
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="control-group">
                            <div class="col-md-4 distance-control">
                                <div class="col-md-4">
                                    <label class="control-label">Primary Email </label>
                                </div>
                                <div class="col-md-8">
                                    <div class="controls">
                                        <asp:TextBox ID="txtPrimaryEmail" runat="server" class="form-control" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row popup-btn">
                    <div class="col-md-12 btn-edit">
                        <button id="btnSave" class="btn btn-defaul" type="button" runat="server" onserverclick="btnSave_ServerClick">
                            <i class="glyphicon glyphicon-floppy-saved"></i>&nbsp Save
                        </button>
                        <button class="btn btn-defaul" onclick="clearall()">
                            <i class="glyphicon glyphicon-remove"></i>&nbsp Clear
                        </button>
                    </div>
                </div>

            </div>
        </div>
    </form>
</body>
</html>
